package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 *销售车实体类
 */
@TableName("t_sellCar")
public class SellCarBean {
    //编号
    @TableId(value = "pk_sellCarId" ,type = IdType.AUTO)
    private Integer id;
    //销售商品
    @TableField(exist = false)
    private ProductBean product;
    //销售商品的编号
    @TableField("fk_productId")
    private String productId;
    //销售数量
    @TableField("sc_num")
    private Integer num;
    //销售用户ID
    @TableField("fk_userId")
    private Integer userId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
